<%@ page contentType="text/html; charset=utf-8" language="java" errorPage="" import="com.scs.model.*,java.util.List"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>查看历史销售信息</title>
<link href="../css/table.css" rel="stylesheet" type="text/css" />
        <link href="../css/font.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<table width="95%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr >
    <td align="center" class="style2" height="35">查看销售信息
    </td>
  </tr>
  <tr>
    <td valign="top" align="center">
    <table width="100%"border="0" cellpadding="1" cellspacing="1">
  <tr height="30" class="font2">
      <td width="42" rowspan="2" align="center" class="style1">周期</td>

    <td colspan="3"  align="center" class="style1">Macbook</td>
    <td colspan="3"  align="center" class="style1">Iphone</td>
    <td colspan="3"  align="center" class="style1">Ipad</td>
    <td  align="center" class="style2">总收入</td>
    </tr>
  <tr height="30" class="font2">
    <td width="50"  align="center" class="style2">需求量</td>
    <td width="80"  align="center" class="style2">售价</td>
    <td width="50"  align="center" class="style2">销售量</td>
    <td width="50"  align="center" class="style2">需求量</td>
    <td width="80"  align="center" class="style2">售价</td>
    <td width="50"  align="center" class="style2">销售量</td>
    <td width="50"  align="center" class="style2">需求量</td>
    <td width="80"  align="center" class="style2">售价</td>
    <td width="50"  align="center" class="style2">销售量</td>
    <td width="56"  align="center" class="style2">&nbsp;</td>
    </tr>
  <s:if test="#request.bills.size==0">
  	<td colspan="12" align="center" class="style1">您当前无销售信息</td>
  </s:if>  
  <s:else>
 <s:iterator value="#request.bills" var="b">
  <tr class="font3">
    <td align="center" class="style1"><s:property value="#b.currentime.currentime"/></td>

    <td align="center" class="style2"><s:property value="#b.countp1+#b.p1lack"/></td>
    <td align="center" class="style2"><s:property value="#b.p1price"/></td>
    <td align="center" class="style2"><s:property value="#b.countp1"/></td>
    <td align="center" class="style2"><s:property value="#b.countp2+#b.p2lack"/></td>
    <td align="center" class="style2"><s:property value="#b.p2price"/></td>
    <td align="center" class="style2"><s:property value="#b.countp2"/></td>
    <td align="center" class="style2"><s:property value="#b.countp3+#b.p3lack"/></td>
    <td align="center" class="style2"><s:property value="#b.p3price"/></td>
    <td align="center" class="style2"><s:property value="#b.countp3"/></td>
    <td align="center" class="style1"><s:property value="#b.p1price*#b.countp1+#b.p2price*#b.countp2+#b.p3price*#b.countp3"/></td>
  </tr>
  </s:iterator>
  </s:else>
</table>
    </td>
  </tr>
</table>
<br />
</body>
</html>